package com.example.myapplication.activity;

import android.content.Intent;
import android.view.View;

import com.example.myapplication.BaseActivity;
import com.example.myapplication.R;
import com.example.myapplication.util.SpUtil;

public class InitAty extends BaseActivity {

    @Override
    protected void initView() {

    }

    @Override
    protected void logicStart() {
        View v=(View) findViewById(R.id.logo);

        v.postDelayed(new Runnable() {
            @Override
            public void run() {
                if (!SpUtil.getLoginStatus()){
                    //没登录过 进入登录页面
                    startActivity(new Intent(InitAty.this,LoginAty.class));
                }else {
                    //进首页
                    startActivity(new Intent(InitAty.this,HomeAty.class));
                }
                finish();

            }
        },1000);
    }

    @Override
    public int getLayoutId() {
        return R.layout.aty_init;
    }
}
